import request from '@/utils/request'

// 查询成本网格列表
export function listCostGrid(query) {
  return request({
    url: '/trade/costGrid/list',
    method: 'get',
    params: query
  })
}

// 查询成本网格详细
export function getCostGrid(id) {
  return request({
    url: '/trade/costGrid/' + id,
    method: 'get'
  })
}

// 新增成本网格
export function addCostGrid(data) {
  return request({
    url: '/trade/costGrid',
    method: 'post',
    data: data
  })
}

// 修改成本网格
export function updateCostGrid(data) {
  return request({
    url: '/trade/costGrid',
    method: 'put',
    data: data
  })
}

// 删除成本网格
export function delCostGrid(id) {
  return request({
    url: '/trade/costGrid/' + id,
    method: 'delete'
  })
}
